package com.hk.commons.vo;

import com.hk.commons.enm.OperationEvent;

/**
 * 关键操作日志
 * @author Evan
 * @date 2017/12/12
 */
public class OperationLogDTO {
    /**
     * 操作用户ID
     */
    private Long operatorId;

    /**
     * 事件请求Json
     */
    private String eventRequestJson;

    /**
     * 主事件类型
     */
    private OperationEvent event = OperationEvent.UNKNOWN;

    /**
     * 操作人操作终端的IP 地址
     */
    private String terminalIP;

    /**
     *
     */
    private String operateItemName;

    /**
     *
     */
    private String operateItemId;

    public Long getOperatorId() {
        return operatorId;
    }

    public void setOperatorId(Long operatorId) {
        this.operatorId = operatorId;
    }

    public String getEventRequestJson() {
        return eventRequestJson;
    }

    public void setEventRequestJson(String eventRequestJson) {
        this.eventRequestJson = eventRequestJson;
    }

    public OperationEvent getEvent() {
        return event;
    }

    public void setEvent(OperationEvent event) {
        this.event = event;
    }

    public String getTerminalIP() {
        return terminalIP;
    }

    public void setTerminalIP(String terminalIP) {
        this.terminalIP = terminalIP;
    }

    public String getOperateItemName() {
        return operateItemName;
    }

    public void setOperateItemName(String operateItemName) {
        this.operateItemName = operateItemName;
    }

    public String getOperateItemId() {
        return operateItemId;
    }

    public void setOperateItemId(String operateItemId) {
        this.operateItemId = operateItemId;
    }


    @Override
    public String toString() {
        return "OperationLogDTO{" +
                "operatorId=" + operatorId +
                ", eventRequestJson='" + eventRequestJson + '\'' +
                ", event=" + event +
                ", terminalIP='" + terminalIP + '\'' +
                ", operateItemName='" + operateItemName + '\'' +
                ", operateItemId='" + operateItemId + '\'' +
                '}';
    }
}
